package com.zhu.SupermarketInventoryManagement.prototype;

public class GoodsManagerPrototype {
    static GoodsPrototype g1 = new GoodsPrototype(1, "可乐", 3, 2.7, 20, "饮料");
    static GoodsPrototype g2 = new GoodsPrototype(2, "面包", 5, 4.5, 10, "食品");
    static GoodsPrototype g3 = new GoodsPrototype(3, "洗衣液", 60, 45, 30, "清洁用品");

    public static void show() {
        System.out.println(g1);
        System.out.println(g2);
        System.out.println(g3);
    }

    public static void show(int i) {
        if (i == 1) {
            System.out.println(g1);
        } else if (i == 2) {
            System.out.println(g2);
        } else if (i == 3) {
            System.out.println(g3);
        }
    }
}
